/*
* pps_bom
*/
package com.pitop.assembly.api;

import com.pitop.assembly.entity.AssemblyLog;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 组件日志 api请求熔断器
 *
 * @author berton
 */
@FeignClient(value = "pps-cloud-provider", fallback = AssemblyLogFeignApiImpl.class)
public interface AssemblyLogFeignApi {
    /**
     * 查询AssemblyLog一个详情信息
     *
     * @param id
     * @return AssemblyLog
     */
    @GetMapping(value = "/assemblyLog/load")
    AssemblyLog load(@RequestParam("id") Long id);

    /**
     * 查询AssemblyLog一个详情信息
     *
     * @param id
     * @return AssemblyLog
     */
    @GetMapping(value = "/assemblyLog/get")
    AssemblyLog get(@RequestParam("id") Long id);

    /**
     * 根据条件id查询AssemblyLog一个详情信息
     *
     * @param id
     * @return AssemblyLog
     */
    @GetMapping(value = "/assemblyLog/load/id/{id}")
    AssemblyLog loadById(@RequestParam("id") Long id);

    /**
     * 根据条件id查询AssemblyLog一个详情信息
     *
     * @param id
     * @return AssemblyLog
     */
    @GetMapping(value = "/assemblyLog/get/id/{id}")
    AssemblyLog getById(@RequestParam("id") Long id);

    /**
     * 删除AssemblyLog
     */
    @DeleteMapping("/assemblyLog/delete")
    void delete(@RequestParam("id") Long id);


    /**
     * 查询AssemblyLog信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/assemblyLog/list")
    List<AssemblyLog> list(@RequestBody AssemblyLog assemblyLog, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 查询AssemblyLog信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/assemblyLog/list/by")
    List<AssemblyLog> listByPk(@RequestParam("id") Long id, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 统计AssemblyLog信息数量根据主键
     *
     * @return 总条数
     */
    @GetMapping(value = "/assemblyLog/count/by")
    Integer count(@RequestParam("id") Long id);

    /**
     * 统计AssemblyLog信息数量
     *
     * @return 总条数
     */
    @PostMapping(value = "/assemblyLog/count")
    Integer count(@RequestBody AssemblyLog assemblyLog);


    /**
     * 创建AssemblyLog
     *
     * @return AssemblyLog
     */
    @PostMapping("/assemblyLog/build")
    AssemblyLog build(@RequestBody AssemblyLog assemblyLog);


    /**
     * 修改AssemblyLog
     *
     * @return AssemblyLog
     */
    @PutMapping("/assemblyLog/modify")
    AssemblyLog modify(@RequestBody AssemblyLog assemblyLog);


}
